<?php

function autoload($class)
{
    require_once str_replace('_', '/', $class) . '.php';
}
spl_autoload_register('autoload');

define('TESTS_PATH', realpath(dirname(__FILE__)));

set_include_path(
    realpath(TESTS_PATH . '/../library')  . PATH_SEPARATOR
  . get_include_path()
);